﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">  
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
    <link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
    <link href="/admin/js/plugins/custom.css" rel="stylesheet" />
</head>
<body class="nav-md" style="background-color:#fff;" ms-controller="adminindexpage">
    <div class="row tile_count">
        <!--<div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
            <span class="count_top"><i class="fa fa-user"></i>用户总数</span>
            <div class="count">{{usercount.count}}</div>
            <span class="count_bottom"><i class="green"><i class="fa fa-sort-asc"></i>{{usercount.day}} </i>最近一周</span>
        </div>
        <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
            <span class="count_top"><i class="fa fa-clock-o"></i>视频数量</span>
            <div class="count">{{videocount.count}}</div>
            <span class="count_bottom"><i class="green"><i class="fa fa-sort-asc"></i>{{videocount.day}} </i>最近一周</span>
        </div>
        <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
            <span class="count_top"><i class="fa fa-user"></i>二手数量</span>
            <div class="count">{{pcount.count}}</div>
            <span class="count_bottom"><i class="green"><i class="fa fa-sort-asc"></i>{{pcount.day}} </i>最近一周</span>
        </div>
        <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
            <span class="count_top"><i class="fa fa-user"></i>订单数量</span>
            <div class="count">{{ordercount.count}}</div>
            <span class="count_bottom"><i class="green"><i class="fa fa-sort-asc"></i>{{ordercount.day}} </i> 最近一周</span>
        </div>-->

    </div>
    <script src="//cdn.bootcss.com/jquery/2.2.3/jquery.min.js"></script>
    <script src="/admin/js/layer/layer.js"></script>
    <script src="//cdn.bootcss.com/avalon.js/2.1.8/avalon.js"></script>
    <script src="/admin/js/ComFunJS.js?v=20180101"></script>
    <script>
        var indexmodel = avalon.define({
            $id: "adminindexpage",
            usercount: { "count": 0, "day": 0 },
            videocount: { "count": 0, "day": 0 },
            pcount: { "count": 0, "day": 0 },
            ordercount: { "count": 0, "day": 0 },
            srdzcount: 0,
            getcount: function () {
                ComFunJS.getJSON("base/Statistics", function (r) {
                    if (r.error == "") {
                        indexmodel.usercount.count = r.result[0].usercount;
                        indexmodel.usercount.day = r.result[1].usercount;
                        indexmodel.videocount.count = r.result[2].usercount;
                        indexmodel.videocount.day = r.result[3].usercount;
                        indexmodel.pcount.count = r.result[4].usercount;
                        indexmodel.pcount.day = r.result[5].usercount;
                        indexmodel.ordercount.count = r.result[6].usercount;
                        indexmodel.ordercount.day = r.result[7].usercount;
                        indexmodel.srdzcount = r.result1;
                    }
                })
            }
        })

        avalon.ready(function () {
           // indexmodel.getcount();
        })
    </script>
</body>
</html>
